﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manterPatrocinio.aspx.cs" Inherits="UI.manterPatrocinio" MasterPageFile="~/wiki.Master"%>

<asp:Content ID="manterPatrocinioContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h2>Gerenciar Patrocínio</h2>
    
  <asp:GridView ID="gvPatrocinio" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AutoGenerateColumns="False" style="font-size: 10pt" 
        Width="480px" DataKeyNames="idPropaganda" 
    onrowediting="gvPatrocinio_RowEditing" 
        EmptyDataText="Nenhuma Propaganda Cadastrada!" 
        onrowdeleting="gvPatrocinio_RowDeleting" 
        onselectedindexchanged="gvPatrocinio_SelectedIndexChanged">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:TemplateField HeaderText="Progaganda">
                <ItemTemplate>
                    #<%# Eval("idPropaganda") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Usuário">
                <ItemTemplate>
                    <%# Eval("Usuario.nome") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Descrição">
                <ItemTemplate>
                    <%# Eval("titulo") %>'>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Qtd. Visitas">
                <ItemTemplate>
                    <%# Eval("descricao") %>
                </ItemTemplate>
            </asp:TemplateField>           
          
            <asp:CommandField ShowDeleteButton="True"/>
            
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    
    <br />
    <asp:Button ID="btNew" runat="server" Height="20px" onclick="btNew_Click" 
        Text="Inserir Propaganda" CssClass="botao" Width="126px" />
    
</asp:Content>
